FileHandler Class Reference

#include <FileHandler.h>

List of all members.

Public Member Functions

 FileHandler ()
bool saveFile (CArchive &ar)
bool loadFile (CArchive &ar)

Private Member Functions

void saveRoadMap (string sub)
void loadRoadMap (string sub)
int stringToInteger (_bstr_t str)
double stringToDouble (_bstr_t str)

Private Attributes

CMainFrame * frame


Detailed Description

Definition at line 6 of file FileHandler.h.


Constructor & Destructor Documentation

FileHandler::FileHandler (   ) 
 

Constructor for the FileHandler.

Definition at line 7 of file FileHandler.cpp.

References frame.


Member Function Documentation

bool FileHandler::loadFile (  CArchive &  ar  ) 
 

The function responsible from loading the created 3D animation from an xml(objects on the scene) and .osg (Road node) formatted file.

Parameters:
ar CArchive file name to be loaded.

Definition at line 11 of file FileHandler.cpp.

References OSGWindows::clearCopiedObjects(), OSGWindows::clearCutObjects(), OSGWindows::clearFrames(), OSGWindows::clearSelectedObjects(), OSGWindows::getConstantRoot(), ObjectIDs, osgwind, and ph.

void FileHandler::loadRoadMap (  string  sub  )  [private]
 

The function is responsible from saving the Road map as an opensceengraph node to a .osg file.

Parameters:
sub file name to be loaded.

Definition at line 711 of file FileHandler.cpp.

References RoadMap::addRoadNode(), and theRoadMap.

bool FileHandler::saveFile (  CArchive &  ar  ) 
 

The function responsible from saving the created 3D animation to an xml(objects on the scene) and .osg (Road node) formatted file.

Parameters:
ar CArchive file name to be saved.

Definition at line 459 of file FileHandler.cpp.

References OSGWindows::getFrames(), and osgwind.

Referenced by CTraffEduDoc::Serialize().

void FileHandler::saveRoadMap (  string  sub  )  [private]
 

The function is responsible from loading the Road map from an opensceengraph node (.osg) file.

Parameters:
sub file name to be loaded.

Definition at line 707 of file FileHandler.cpp.

References RoadMap::returnRoadNode(), and theRoadMap.

double FileHandler::stringToDouble (  _bstr_t  str  )  [inline, private]
 

Definition at line 53 of file FileHandler.h.

int FileHandler::stringToInteger (  _bstr_t  str  )  [inline, private]
 

Definition at line 42 of file FileHandler.h.


Member Data Documentation

CMainFrame* FileHandler::frame [private]
 

Definition at line 7 of file FileHandler.h.

Referenced by FileHandler().


The documentation for this class was generated from the following files:
Generated on Sun May 28 18:54:12 2006 for TraffEdu by  doxygen 1.4.6-NO